Skip to content

add setting key allowing to customize logging#31

Open
pawelmhm wants to merge 1 commit intomasterfrom
configurable_loglevels
Open

add setting key allowing to customize logging#31
pawelmhm wants to merge 1 commit intomasterfrom
configurable_loglevels

Conversation

@pawelmhm
Copy link
Copy Markdown
Member

it will default to logging.DEBUG but users can set this to something higher in case they dont want all the noise.

fixes #30

for future we can also add command line flag but for now settings may be enough.

it will default to logging.DEBUG but users can set this to something higher
in case they dont want all the noise.
Comment thread scrapyrt/log.py
loglevel = kwargs.get('level', INFO)
configured_log_level = scrapyrt_settings.LOG_LEVEL
if loglevel < configured_log_level:
return
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ugh, why it isn't implemented as logging filter?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

scrapyrt logging is bit too noisy and not easy to customize

2 participants